package com.business.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.business.common.annotation.Excel;
import com.business.common.core.domain.BaseEntity;

/**
 * 电影对象 movie
 * 
 * @author ruoyi
 * @date 2025-06-14
 */
public class Movie extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 分布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseDate;

    /** 分钟 */
    @Excel(name = "分钟")
    private Long duration;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyId;

    /** 公司id */
    @Excel(name = "公司名称")
    private String companyName;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 分类id */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 评级 */
    @Excel(name = "评级")
    private BigDecimal rating;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setReleaseDate(Date releaseDate) 
    {
        this.releaseDate = releaseDate;
    }

    public Date getReleaseDate() 
    {
        return releaseDate;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setRating(BigDecimal rating) 
    {
        this.rating = rating;
    }

    public BigDecimal getRating() 
    {
        return rating;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("releaseDate", getReleaseDate())
            .append("duration", getDuration())
            .append("companyId", getCompanyId())
            .append("categoryId", getCategoryId())
            .append("rating", getRating())
            .toString();
    }
}
